package com.dongdong.api;

import com.dongdong.em.Result;
import com.dongdong.model.TbItem;
import com.dongdong.vo.ItemVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("dongdong-goos-service")
public interface ItemAPI {

    @GetMapping("item/getIemBySKUId")
    public Result<ItemVO> getIemBySKUId(@RequestParam Long skuid);

    @PostMapping("item/subStockCount")
    public Result<List<TbItem>> subStockCount(@RequestBody List<TbItem> kc);
}
